package com.site.wisdom_construction.entity.iotModule;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;

/**
 * @Description  
 * @Author  DYF
 * @Date 2022-09-02 
 */
@ApiModel (value ="华控塔机预警/报警数据表实体类", description="TowerCraneWarning")
public class TowerCraneWarning {
	/**
	 * 华控塔机预警/报警数据ID
	 */
   	@ApiModelProperty(value = "华控塔机预警/报警数据ID", name = "id")
	private Integer id;

	/**
	 * 项目ID
	 */
   	@ApiModelProperty(value = "项目ID", name = "projectId")
	private Integer projectId;

	/**
	 * 设备ID
	 */
   	@ApiModelProperty(value = "设备ID", name = "deviceId")
	private String deviceId;

	/**
	 * 监控时间
	 */
   	@ApiModelProperty(value = "监控时间", name = "jkDate")
	@JsonFormat(timezone = "GMT+8", pattern ="yyyy-MM-dd HH:mm:ss")
	private Date jkDate;

	/**
	 * 报警类型
	 */
   	@ApiModelProperty(value = "报警类型", name = "alarm")
	private String alarm;

	public TowerCraneWarning(){ super(); }

	public TowerCraneWarning(Integer id, Integer projectId, String deviceId, Date jkDate, String alarm) {
		this.id = id;
		this.projectId = projectId;
		this.deviceId = deviceId;
		this.jkDate = jkDate;
		this.alarm = alarm;
	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getProjectId() {
		return this.projectId;
	}

	public void setProjectId(Integer projectId) {
		this.projectId = projectId;
	}

	public String getDeviceId() {
		return this.deviceId;
	}

	public void setDeviceId(String deviceId) {
		this.deviceId = deviceId;
	}

	public Date getJkDate() {
		return this.jkDate;
	}

	public void setJkDate(Date jkDate) {
		this.jkDate = jkDate;
	}

	public String getAlarm() {
		return this.alarm;
	}

	public void setAlarm(String alarm) {
		this.alarm = alarm;
	}

	@Override
	public String toString() {
		return "{" +
				"id='" + id + '\'' +
				",projectId='" + projectId + '\'' +
				",deviceId='" + deviceId + '\'' +
				",jkDate='" + jkDate + '\'' +
				",alarm='" + alarm + '\'' +
				'}';
	}
}
